package com.financing.platform.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.financing.platform.dao.IProjectAnnualRevenueDao;
import com.financing.platform.dto.ProjectAnnualRevenueDTO;
import com.financing.platform.service.IProjectAnnualRevenueService;

@Service("projectAnnualRevenueServiceImpl")
public class ProjectAnnualRevenueServiceImpl extends BaseServiceImpl implements
		IProjectAnnualRevenueService {

	@Autowired
	private IProjectAnnualRevenueDao projectAnnualRevenueDaoImpl;
	
	public Integer insertProjectAnnualRevenue(
			ProjectAnnualRevenueDTO projectAnnualRevenueDTO) {
		return projectAnnualRevenueDaoImpl.insertProjectAnnualRevenue(projectAnnualRevenueDTO);
	}

	public List<ProjectAnnualRevenueDTO> queryProjectAnnualRevenue(Integer pid) {
		return projectAnnualRevenueDaoImpl.queryProjectAnnualRevenueList(pid);
	}

	public int deleteProjectAnnualRevenue(Integer pid) throws SQLException {
		return projectAnnualRevenueDaoImpl.deleteProjectAnnualRevenue(pid);
	}

}
